/** * @description: 五困生信息-用于查询，用于五困生班级页面展示 */
<template>
  <div>
    <div v-for="(item, index) of classList" :key="index" :class="[index > 0 ? 'van-hairline--top' : '', 'five-hard-student']">
      <div class="floor-top">
        <p>
          <label>{{ item.stuName.slice(0, 1) }}</label>
          <span>{{ item.stuName }}</span>
        </p>
        <p class="stuno">{{ item.stuNo }}</p>
      </div>
      <div>
        <label>是否五困生：</label>
        <span>{{ item.isDifficult === '1' ? '是' : '否' }}</span>
      </div>
      <div>
        <label>五困生类型：</label>
        <span>{{ item.sign || '--' }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'FiveHardStudent',
  props: ['classList'],
}
</script>

<style lang="scss" scoped>
.five-hard-student {
  .floor-top {
    @include fcb();
    p {
      @include fh();
      font-size: $fz16;
      label {
        display: inline-block;
        width: 24px;
        height: 24px;
        line-height: 24px;
        border-radius: 50%;
        font-size: $fz12;
        text-align: center;
        background: #2e6cf6;
        color: #fff;
        margin-right: 12px;
        white-space: nowrap;
      }
      span {
        flex: 1;
        color: $color-title;
      }
    }
  }
  > div + div {
    label {
      font-size: $fz14;
      color: #5f5f6b;
      white-space: nowrap;
    }
    span {
      font-size: $fz14;
      color: #000;
    }
  }
  > div:last-child {
    display: flex;
    margin-top: 15px;
    span {
      text-align: justify;
      line-height: 20px;
      margin-top: -2px;
    }
  }
}
.five-hard-student + .five-hard-student {
  padding-top: 20px;
  margin-top: 20px;
}
</style>
